<?php
/* Description: This file is used to add main category. */
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");
require_once _SITE_PATH_.'classes/Venue/Venue.php';
require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';

if( $_POST['submit']=='Submit'){    
    $parms['venue_type'] = $_POST['venue_type'];
	$parms['description'] = $_POST['description'];
	$parms['added'] = date("Y-m-d h:i:s");
	       
    if( CommonUtility::insertData($parms, 'venue_type_master')) {        
        header("Location: venuetype_mng.php?msg=1304");            
        exit;
    }
    $err = 1305;    
}

$editor = CommonUtility::includeEditor();

$errMsg = $err;
$_tplName = 'venue/venuetype_add.tpl';
$_title = 'Add Venue Type';

require_once _ADMIN_TPL_MAIN_;
?>